﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data.OleDb;
using System.Data;
using System.Data.Common;

namespace HotelManagement.DL.Helper
{
    public class AccessDBHelper : DBHelper
    {
        public AccessDBHelper(DbConnection conn)
            : base(OleDbFactory.Instance, conn)
        {

        }

        #region === method ===

        /// <summary>
        /// GetDBCommandBySql
        /// </summary>
        /// <param name="sql">sql</param>
        /// <returns>command</returns>
        public virtual OleDbCommand GetDBCommandBySql(string sql) 
        {
            OleDbCommand dbCommand = new OleDbCommand(sql);
            return dbCommand;
        }



        #endregion
    }
}
